package com.junhai.tamsys.factory;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;


public class BeansFactory {
	
	private  static XmlBeanFactory factory;
	
	static {
		ClassPathResource resource = new ClassPathResource("webvsp_beans.xml");
		 factory = new XmlBeanFactory(resource);
	}
	
	
	public static Object getBean(String name){
		return factory.getBean(name);
	}
	
}
